package com.example.administrator.hqq.bean;

import com.example.administrator.hqq.config.LoongsConfig;

/**
 * @name: HQQ
 * @describe: 用于帖子和评论更新处理点赞和评论
 * @author: 康海涛 QQ2541849981
 * @time: 2018/12/12 16:51
 * @remark:
 */
public class ForumComment {
    private Type type;
    private String id;
    private String userID;
    private boolean isLike;
    private boolean isReport;
    private int position;
    private String userName;
    private String commentContext;
    public static enum Type{
        CREATE_FORUM,FORUM_REPORT,FORUM_LIKE,REPLY_REPORT,REPLY_LIKE,DISCUSSION_REPORT,DISCUSSION_LIKE,ADD_DISCUSSION,DELETE_FORUM
    }

    public ForumComment(Type type, String id,int poition) {
        this.type = type;
        this.id = id;
        this.position=poition;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getUserID() {
        return userID;
    }

    public Type getType() {
        return type;
    }

    public String getId() {
        return id;
    }

    public int getPosition() {
        return position;
    }

    public void setReport(boolean report) {
        isReport = report;
    }

    public boolean isReport() {
        return isReport;
    }

    public boolean isLike() {
        return isLike;
    }

    public void setLike(boolean like) {
        isLike = like;
    }

    public void setCommentContext(String commentContext) {
        this.commentContext = commentContext;
    }

    public String getCommentContext() {
        return commentContext;
    }
}
